The C programming language allows you to efficiently develop your own real-time processes while also accessing existing functions and algorithms. Functions are available for accessing data, inputs, outputs, and interfaces of the ADwin system. With a single click, the GNU compiler (as with ADbasic and ADsim), the GNU compiler generates an ADwin process that runs cyclically in the ADwin system at a defined speed, with absolute precision and predictability, at up to 1 MHz.
ADwinC for Visual Studio extends the proven development environment, allowing you to easily and flexibly write programs in C for ADwin-Pro II, ADwin-Gold III and ADwin-X-A20. In the typical ADwin program structure, you can use the advantages of the C language as usual and add access to the inputs, outputs, counters, and interfaces of the ADwin hardware. At the push of a button, the GNU compiler generates an ADwin process, which is then transferred to the ADwin system and started. The ADwin process generated from C is processed on the ADwin system in an event-triggered or cyclic manner and handles all time-critical processes. The response time to events is only a fraction of a microsecond. Processing and output, e.g., of a correction value after a trigger event, is so fast that response times of a few hundred nanoseconds can be guaranteed. The reliably short response time offers so much performance reserve that you can integrate complex calculations into the process.
ADwinC for Visual Studio supports you in debugging and monitoring running ADwin processes. You can make improvements to the source code at any time and transfer them to the ADwin system in no time at all. Visual Studio continuously exchanges data with the running process on the ADwin system. You can display selected process data in the user interface and change it online; in addition, the quickly configurable ADtools are available to you. You monitor key values online, control your real-time processes, and evaluate the process timing.
The ADwinC program package for Visual Studio allows you to access all inputs, outputs, and interfaces of the ADwin hardware. Numerous functions are available for this purpose:
An active display in the ADwinC program package shows the current values of the system variables (decimal, binary, or hexadecimal, as desired), the status of the ADwin processes, the current processor load of the ADwin system, and the available memory. The built-in timing analyzer provides reliable information about the timing behavior and response time of individual processes. Debugging functions allow runtime errors to be intercepted, texts to be output, and user-defined error messages to be triggered in the running real-time process. Good memory management is supported by a stack test.
You work in Visual Studio as usual and quickly become productive. With ADtools, you can also display data graphically or numerically, visualize process histories, make inputs via potentiometers, sliders, or buttons, and control the ADwin system resources.